<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert_Title_Here</title>
		<link rel="Shortcut Icon" href="Insert_Favicon_Here" />
		<link rel="stylesheet" href="public/bootstrap/css/bootstrap.min.css" />
		<script src="public/js/jquery-3.2.1.min.js"></script>
		<script src="public/bootstrap/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="public/css/style.css" />
	</head>
	<style>
		*{
			font-family: "微软雅黑";
			margin: 0px;
			padding: 0px;
		}
		th, td{
			width: 300px;
			font-size: 20px;
			text-align: center;
			height: 40px;
		}
		table{
			margin-top:10px;
			margin-bottom:10px;
		}
		#add{
			text-color:red;
			font-size:20px;
			position: relative;
			margin-top:10px;
			margin-left:1100px;
		}
	</style>
	<body>
		<!--顶部效果-->
		<%@ include file="/Header.jsp" %>
		<div id="add">
			<a href="${pageContext.request.contextPath}/AddFolders.jsp">
				<input type="button" value="添加数据">
			</a>
			<!-- 
			<a href="${pageContext.request.contextPath}/showSourcePython?fileName=sk">
				sk.py
			</a>
			<a href="${pageContext.request.contextPath}/showSourcePython?fileName=flight">
				flight.py
			</a>
			<a href="${pageContext.request.contextPath}/showSourcePython?fileName=flight_ceshi">
				flight_ceshi.py
			</a> -->
		</div>
		<!--主体部分-->
		<center>
			<table border="1px" cellpadding="10px" cellspacing="10px">
				<tr>
					<th>文件夹</th>
					<th>删除</th>
				</tr>
				<c:forEach items="${requestScope.allFolders}" var="folder">
					<tr>
						<td>${folder.folderName}</td>
						<td>
							<a href="${pageContext.request.contextPath}/folderServlet?method=delete&folderName=${folder.folderName}">
								<div class="glyphicon glyphicon-remove"></div>
							</a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</center>
		
		<!--底部效果-->
		<%@ include file="/Footer.jsp" %>
		
	</body>
</html>